package com.haoshuang.zhouzhoubang.ui.dialog

import android.content.Context
import com.haoshuang.zhouzhoubang.R
import com.haoshuang.zhouzhoubang.databinding.DialogShowRewardNoticeBinding
import com.lxj.xpopup.core.CenterPopupView
import com.mufeng.libs.utils.view.clickWithTrigger

/**
 * 显示订单奖励须知
 * @property binding DialogShowRewardNoticeBinding
 * @constructor
 */
class ShowRewardNoticeDialog(context: Context): CenterPopupView(context) {

    private lateinit var binding: DialogShowRewardNoticeBinding
    override fun getImplLayoutId(): Int {
        return R.layout.dialog_show_reward_notice
    }

    override fun onCreate() {
        super.onCreate()
        binding = DialogShowRewardNoticeBinding.bind(popupImplView)

        binding.tvOk.clickWithTrigger {
            dismiss()
        }

        binding.ivClose.clickWithTrigger{
            dismiss()
        }
    }

}